package com.healthtop.utils;

import org.springframework.util.ObjectUtils;

import java.util.List;

/**
 * Created by Peter on 2017/9/12.
 */
public class CollectionUtils {

    public static <T> T getFirst(List<T> list){
        if(!ObjectUtils.isEmpty(list)){
            return list.get(0);
        }
        return null;
    }

}
